package com.sam.gui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.JavascriptInterface;

import com.sam.gui.base.BaseWebActivity;
import com.sam.ui.base.activity.BaseActivity;

public class MyDoctorListSpinnerWebActivity extends BaseWebActivity {

    @Override
    protected void initView() {
        super.initView();
        setContentUrl("index.php?c=user&a=user_myinfo_by_ys&is_not_edit="+getIntent().getExtras().getString("is_not_edit"));
    }

    @JavascriptInterface
    public void address_add(){
        Intent intent = new Intent(this, AddMyAddressWebActivity.class);
        startActivity(intent);
    }
    @JavascriptInterface
    public void ys_view(){
        Intent intent = new Intent(this, DoctorDetailsWebActivity.class);
        startActivity(intent);
    }

    @JavascriptInterface
    public void select_ys(String ys_name){
        Intent intent=new Intent();
        intent.putExtra("ys_name", ys_name);
        setResult(999, intent);
        finish();
    }

    @JavascriptInterface
    public void submitSuccess(){
        finish();
    }
}
